package cn.com.yusys.yusp.admin.service;

import cn.com.yusys.yusp.admin.repository.mapper.SystemLogMapper;
import cn.com.yusys.yusp.commons.mapper.CommonMapper;
import cn.com.yusys.yusp.commons.mapper.QueryModel;
import cn.com.yusys.yusp.commons.service.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 
 * @项目名称: yusp-admin
 * @类名称: SystemLogService
 * @类描述: 系统日志业务
 * @功能描述: 
 * @创建人: lupan@yusys.com.cn
 * @创建时间: 2017-12-27 18:50
 * @修改备注: 
 * @修改记录: 修改时间    修改人员    修改原因
 * -------------------------------------------------------------
 * @version 1.0.0
 * @Copyright (c) 2017宇信科技-版权所有
 */
@Service
public class SystemLogService extends CommonService {
    @Autowired
    private SystemLogMapper mapper;


    /**
     * 
    * @方法名称: getLogByParam
    * @方法描述: 
    * @参数与返回说明: 
    * @算法描述:
     */
    @Transactional(readOnly = true)
    public List<Map<String, Object>> getLogByParam(QueryModel model) {
        return mapper.getLogByParam(model);
    }

    @Override
    protected CommonMapper<?> getMapper() {
        return mapper;
    }
}